package com.runewbie.pafcmall.product.feign;

import com.runewbie.common.to.es.SkuEsModel;
import com.runewbie.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author: li_jian
 * @version: 1.0
 * @date: 2020/6/4 19:50
 * @description：
 */
@FeignClient("pafcmall-search")
public interface SearchFeignService {
    /**
     * 商品上架
     *
     * @param skuEsModels
     * @return
     */
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
